'use strict'

const Koa = require('koa');
const app = new Koa();

app.use(async(ctx, next) => {
    console.log(1);
    await next();
    console.log(2);

    // ctx.body = 'hello uestc';
});

app.use(ctx => {
    console.log(3);
    ctx.body = 'hello uestc';
    console.log(4);
});

app.listen(3000);